import sha1 from "js-sha1";
import config from "./config";
const api="https://spds.cttqvi.com/";
const lp=config.lp;
const getRandom = function (num=12){
  return Math.floor((Math.random()+Math.floor(Math.random()*9+1))*Math.pow(10,num-1));
}
const getjm=()=>{
	let rannumbers = getRandom() + "";
	let timestamps = new Date().getTime() + "";
	let signs = sha1(rannumbers+timestamps+lp);
	return {rannumbers,timestamps,signs}
}
export {
  api,
  lp,
  getRandom,getjm
}